package cn.itsource.basic.base.service;

import cn.itsource.basic.PageList;
import cn.itsource.basic.base.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {
    
    void add(T t);

    void delete(Long id);

    void update(T t);

    T queryById(Long id);

    List<T> queryAll();

    PageList<T> queryPage(BaseQuery query);

    void batchRemove(List<Long> ids);
}
